# !/usr/bin/env python
# -*- coding: utf-8 -*-
import subprocess


class WinCommand:
    """
    :param :执行dos命令，返回执行结果
    """
    def __init__(self):
        pass

    def Commands(self, command):
        subprocess.check_output(command,
                                   shell=True,
                                   stderr=subprocess.PIPE,
                                   encoding="utf-8",
                                   timeout=1)